package org.phoenixframework.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.phoenixframework.common.entity.base.BaseEntity;

/**
 * <p>
 * 系统角色表
 * </p>
 *
 * @author doublelife
 * @since 2021-05-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_role")
@ApiModel(value = "SysRole对象", description = "系统角色表")
public class SysRole extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "角色key")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "角色key")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "角色描述")
    @TableField("remark")
    private String remark;


}
